﻿<UserControl x:Class="TimeSplicerModule.Views.LoginView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300"
             Width="325" Height="350">
    
    <Grid VerticalAlignment="Top" HorizontalAlignment="Left">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="100" />
            <ColumnDefinition />
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition />
            <RowDefinition />
            <RowDefinition Height="60" />
            <RowDefinition Height="100" />
        </Grid.RowDefinitions>
        
        <!-- Login -->
        <Border Grid.Column="0" Grid.Row="0" VerticalAlignment="Center" HorizontalAlignment="Right" Margin="5">
            <TextBlock Text="Login:" />
        </Border>
        
        <Border Grid.Column="1" Grid.Row="0" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="5">
            <TextBox Text="{Binding Path=Session.User.Login}" Width="200" />
        </Border>
        
        
        <!-- Password -->
        <Border Grid.Column="0" Grid.Row="1" VerticalAlignment="Center" HorizontalAlignment="Right" Margin="5">
            <TextBlock Text="Password:" />
        </Border>
        
        <Border Grid.Column="1" Grid.Row="1" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="5">
            <TextBox Text="{Binding Path=Session.User.Password}" Width="200" />
        </Border>
        
        
        <!-- Login Button -->
        <Border Grid.Column="1" Grid.Row="2" VerticalAlignment="Center" HorizontalAlignment="Center" Margin="5">
            <Button Name="loginButton" Content="Login" Width="125" Height="25" Click="loginButton_Click" />
        </Border>
        
        <!-- Message -->
        <Border Grid.Column="0" Grid.Row="3" Grid.ColumnSpan="2" VerticalAlignment="Center" HorizontalAlignment="Center" Margin="5">
            <TextBlock Text="{Binding Path=Message}" Width="225" Height="100" />
        </Border>
        
    </Grid>
</UserControl>
